package com.stx.homework.day3_18.p2;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: 施龙青
 * @Date: 2024/3/18 23:56
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Circle extends Graph {
    /**
     * 半径
     */
    private Integer radius;

    /**
     * 圆的面积
     */
    public void area() {
        System.out.println(radius * 1L * radius * Math.PI);
    }
}
